using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using Water.Model; 

namespace Water.Data.Repositories.Mappings {
    
    
    public class PipeNetCheckMap : ClassMap<PipeNetCheck> {
        
        public PipeNetCheckMap() {
			Table("Tbt_PipeNetCheck");
			Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
			Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Pipeline>(x => x.Pl, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
			Map(x => x.CheckDt).Column("CheckDt").Not.Nullable();
			Map(x => x.CheckTime).Column("CheckTime").Not.Nullable();
			Map(x => x.LoushuiQk).Column("LoushuiQk").Not.Nullable();
			Map(x => x.CheckEmp).Column("CheckEmp");
			Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
